package com.zk.h2demo.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.zk.h2demo.model.User;


public interface UserDao extends JpaRepository<User,Long> {
	@Query(value = "select name from User u where u.name like %:name%")
	public List<String> getName(@Param("name") String name);
}